v=78;
b=66;
n=86;
m=77;
c=67;

document.onkeydown=function()
{
if(event.altKey&&event.keyCode == v)
{
if(!document.getElementById('zgnotes-frame'))
{var dvStatusBar = document.createElement('DIV');
        dvStatusBar.id = 'gnotes-frame';
        dvStatusBar.innerHTML = '<iframe style="position: fixed; right: 0px; bottom: 0px" src="http://www.google.com/notebook/ig?hl=ru" width="355" height="200" name="fr" id="fr"></iframe>';
        document.body.appendChild(dvStatusBar);}


window['__gnotesBookmarkletUrl'] = 'http://www.google.com/notebook/bookmarklet';
(function() {var f="prototype",g="document",h=h||false,i=window.__gnotesBookmarkletUrl||"http://www.google.com/notebook/bookmarklet",j=function(a){this.e=a;this.a=a[g];this.n=dvStatusBar};j[f].f=function(a){return this.a.createElement(a||"div")};
j[f].j=function(){var a=this.a.charset;this.a.charset="utf-8";var c=this.i(this.g(this.e)),b=this.f("form");b.style.display="none";b.method="POST";b.action=i;b.target="fr";this.d(b,"contents",c.k);this.d(b,"attr",c.m);this.d(b,"attrt",c.l);this.a.body.appendChild(b);b.submit();this.a.charset=a};j[f].d=function(a,c,b){if(b){var d=this.f(navigator.userAgent.indexOf("MSIE")!=-1?"<input name='"+c+"'>":"input");d.type="hidden";d.name=c;d.value=b;a.appendChild(d)}};
j[f].g=function(a){a=[a];for(var c=0;c<a.length;c++)try{var b=(new m(a[c])).h();if(b)return b;else{for(var d=a[c][g],k=d.getElementsByTagName("FRAME"),e=0;e<k.length;e++)a.push(k[e].contentWindow);var l=d.getElementsByTagName("IFRAME");for(e=0;e<l.length;e++)a.push(l[e].contentWindow)}}catch(n){}return""};j[f].i=function(a){var c=this.a,b=c.title?c.title:"";c=c.location.href;if(b==null||b==""){b=c;b=b.substring(b.indexOf("//")+2)}return{l:b,m:c,k:a}};
var m=function(a){this.e=a;var c=a[g];if(this.b=c.selection?c.selection:a.getSelection?a.getSelection():{})this.c=this.b.createRange?this.b.createRange():this.b.rangeCount?this.b.getRangeAt(0):{}};m[f].h=function(){if(this.c.htmlText)return this.c.htmlText;else if(this.c.cloneContents){var a=this.e[g].createElement("div");a.appendChild(this.c.cloneContents());return a.innerHTML}return null};h||(new j(window)).j();}).call();


}
if(event.altKey&&event.keyCode == b)
{
javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open("http://www.google.com/bookmarks/mark?op=edit&hl=ru&output=popup&bkmk="+c(b.location)+"&title="+c(b.title),"bkmk_popup","left="+((a.screenX||a.screenLeft)+10)+",top="+((a.screenY||a.screenTop)+10)+",height=420px,width=550px,resizable=1,alwaysRaised=1");a.setTimeout(function(){d.focus()},300)})();
}
if(event.altKey&&event.keyCode == n)
{
window.open("http://www.google.com/notebook/ig?hl=ru","gnotesWin","location=0,menubar=0,scrollbars=0,status=0,toolbar=0,width=300,height=300,resizable")
}
if(event.altKey&&event.keyCode == m)
{
window.open("http://www.google.com/notebook?hl=ru","gnotes")
}



if(event.altKey&&event.keyCode == c)
{  
if(!document.getElementById('gnotes-frame'))
{var dvStatusBar = document.createElement('DIV');
        dvStatusBar.id = 'gnotes-frame';
        dvStatusBar.innerHTML = '<iframe style="position: fixed; right: 0px; bottom: 0px" src="http://www.google.com/notebook/ig?hl=ru" width="355" height="200" name="fr" id="framegno"></iframe>';
        document.body.appendChild(dvStatusBar);}
else
{
var dvStatusBar = document.getElementById('gnotes-frame');
document.body.removeChild(dvStatusBar);
}      
}
}

